-- quantum_mechanics
-- create by shuzy
-- 量子力學，降低生命N

return {
    apply = function(prop, baseValue)
        return baseValue - tonumber(prop[3]);
    end,

    clear = function(who, prop)
        local force = prop[3];
        -- 血量还原一下
        local value = who:getHp() + prop[3];
        who:setRealHp(value);

        -- 重新刷一下属性
        PropM.refresh(who);
    end,

    record = function(target, prop, path)
        return false;
    end
};